<admintpl file="header"/>
<link rel="stylesheet" href="__PUBLIC__/css/jquery.datetimepicker.css">
<link rel="stylesheet" href="__PUBLIC__/css/act.css">
<link rel="stylesheet" href="__PUBLIC__/css/main.css">


<style type="text/css">
    table.cityList {
        margin: 10px 0px;
        border: 1px solid #999;
        text-align: center;
    }

    .actimg {
        width: 80px;
    }
</style>
</head>
<body>

<div class="manage">
    <span><a href="">秒杀活动</a></span>
</div>

<div class="act_main"><a href="{:U('Grab/index')}">活动管理</a>

</div>
<div class="wrap">
    <div class="act_title">
        <div class="act_left">
            <span class="act_all" data-type="">
                    秒杀活动
            </span>
            <span class="ac_color">（
                    <if condition="$list['data']['count'] gt 0"><?php echo $list['data']['count'];?><else/>0</if>个秒杀活动
                        )</span>

        </div>
        <div class="act_right">
            <ul>
               <li><a href="{:U('Grab/add')}" target="_blank">> <span>添加秒杀活动</span></a></li>
                <!--<li><a href="{:U('Grab/addGrab')}" target="_blank">> <span>添加秒杀活动</span></a></li>-->
            </ul>
        </div>
    </div>


    <table cellpadding="2" cellspacing="0" width="80%" align="center" id="timeDesc"
           class="Joperate tablesorter tablesorter-blue table table-hover table-bordered table-list">
        <thead>
        <tr role="row" class="tablesorter-headerRow">
            <th><input type="checkbox" data-id="" class="check_all_activity"></th>
            <th>活动名称</th>
            <th><a href="#" class="" id="actid">活动ID</a></th>
            <th>活动类型</th>
            <th class="tablesorter-header tablesorter-headerUnSorted sortTime sort">
                <a href="javascript:void(0)" class="">更新时间</a> <span class="desc">( <i>倒序</i> )</span></th>
            <th>活动链接</th>
            <!--<th>查看中奖数据</th>-->
        </tr>
        </thead>
        <script type="text/javascript">
            $('.sortTime').click(function(){
                if($(this).hasClass('sort')){
                    $(this).find('i').text('正序');
                    $(this).removeClass('sort');

                }else{

                    $(this).find('i').text('倒序');
                    $(this).addClass('sort');

                }
            })
        </script>
        <tbody>
            <foreach name="list['data']['list']" item="vo">
                <tr>
                    <td><input type="checkbox" data-id="{$vo.ActivityID}" ></td>
                    <td class="act-name">{$vo.attr.PageTitle}<a class="act-view"
                                                      href="{:U('Grab/view',array('ActivityID'=>$vo['ActivityID']))}"></a>
                    </td>
                    <td>{$vo.ID}</td>
                    <td>{$vo.type.SubName}</td>
                    <td>{$vo.Time}</td>
                    <td>{$vo.UrlTotal}个链接 <a href="javasctipt:void(0)" class="Jcopy" data-href="">（查看链接）</a>

                        <foreach name="vo['City']" item="item" key="key">

                            <input type="hidden" value="{$key}:{$item}" class="hidUrl">

                        </foreach>
                    </td>
                    <!--<td><a href="{:U('Grab/getJoinList',array('ActivityID'=>$vo['ActivityID']))}" target="_blank">点击查看</a></td>-->
                </tr>
            </foreach>
        </tbody>

    </table>

    <div class="act_more">
        <div class="text-center"><a href="javascript:void(0)" class="JMoreActivity">加载更多秒杀活动</a></div>
    </div>

</div>


<script type="text/javascript">
    var getMoreActicityUrlInfo = "{:U('Grab/getMore')}";
    var getViewUrl = "{:U('Grab/view')}";
    $(function () {
        $("#timeDesc").tablesorter();
    });
</script>
<script src="__PUBLIC__/js/uploadify/jquery2.js" type="text/javascript"></script>
<script src="__PUBLIC__/js/artDialog/artDialog.js"></script>

<script src="__PUBLIC__/js/common.js"></script>
<script src="__PUBLIC__/js/main.js"></script>
<script src="__PUBLIC__/js/grab.js"></script>
<script src="__PUBLIC__/js/tablesorter/dist/js/jquery.tablesorter.min.js"></script>
<script src="__PUBLIC__/js/tablesorter/dist/js/jquery.tablesorter.widgets.min.js"></script>
<link rel="stylesheet" href="__PUBLIC__/js/tablesorter/dist/css/theme.default.min.css">
</body>
</html>